package org.cobo.vmmanagement.domain;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.persistence.ManyToOne;
import java.util.Date;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.springframework.format.annotation.DateTimeFormat;

@RooJavaBean
@RooToString
@RooJpaActiveRecord(finders = { "findProjectsByNameEquals" })
public class Project {

    /**
     */
    @NotNull
    @Size(min = 2)
    private String Name;

    /**
     */
    @ManyToOne
    private Client Client;

    /**
     */
    private Integer ChargedHours;

    /**
     */
    @NotNull
    private Integer QuotedHours;

    /**
     */
    @NotNull
    private Integer QuotedRate;

    /**
     */
    private Double Budget;

    /**
     */
    private Double HourlyCost;

    /**
     */
    private Double ReturnPercentage;

    /**
     */
    @ManyToOne
    private ProjectState CurrentState;

    /**
     */
    @Temporal(TemporalType.TIMESTAMP)
    @DateTimeFormat(style = "M-")
    private Date StartDate;

    /**
     */
    @Temporal(TemporalType.TIMESTAMP)
    @DateTimeFormat(style = "M-")
    private Date InvoiceDate;

    /**
     */
    @Temporal(TemporalType.TIMESTAMP)
    @DateTimeFormat(style = "M-")
    private Date CreationDate;

    /**
     */
    @ManyToOne
    private Resource Manager;

    /**
     */
    private Double Expenses;

    /**
     */
    private Double TotalAmount;

    /**
     */
    private String FocalPoint;

    /**
     */
    private String Partner;

    /**
     */
    private Integer Engagement;

    /**
     */
    @NotNull
    @ManyToOne
    private RateToARS RateToARS;
}
